#pragma once

#include "AESystem.h"
#include "wx/wx.h"
#include <wx/propgrid/propgrid.h>

class AEPropertyPane : public wxPanel
{
public:
	AEPropertyPane( wxWindow* parent );

protected:	

	struct PGCO
	{
		SP::SPCollisionObject* pCO;
		wxPGProperty* m_PGProperties[17];
	};

	wxPropertyGrid* m_pPropertyGrid;
	void InitCollisionProperties();
	void OnSize( wxSizeEvent& event );
	void OnPGChange( wxPropertyGridEvent& event );
	PGCO* AppendCO( wxString name,  SP::SPCollisionObject* pCO );
	void UpdateCO( PGCO* pPGCO );

	wxPGProperty* m_pCOCount;
	SP::SPCollisionComponent* m_pCollisionComponent;
	std::vector<PGCO*> m_PGCOList;

	DECLARE_EVENT_TABLE();
};












